package suncertify.application.exceptions;

import suncertify.application.Strings;

/**
 * Thrown when a <code>String</code> parameter is <code>null</code> or consists only of space characters or is empty.
 * 
 */
public class NullEmptyParameterException extends IllegalArgumentException {

    /**
     * Automatic generated serialization version ID.
     */
    private static final long serialVersionUID = -98761771811688105L;

    /**
     * Constructs a <code>NullEmptyParameterException</code> for the specified parameter. See
     * {@link Strings#MSG_NULL_EMPTY_PARAMETER} for the error message details.
     * 
     * @param parameterName
     *            Parameter name which is null or empty or consists only of space characters.
     */
    public NullEmptyParameterException(String parameterName) {

	super(Strings.getMessage(Strings.MSG_NULL_EMPTY_PARAMETER, parameterName));
    }
}
